package service;

import java.util.List;

import entity.Pet;
import dao.PetDao;
import dao.PetDaoImpl;

public class PetServiceImpl implements PetService {
    private PetDao petDao = new PetDaoImpl();

    @Override
    public List<Pet> findAll() {
        return petDao.findAll();
    }

    @Override
    public List<Pet> findByBreed(Integer breed) {
        return petDao.findByBreed(breed);
    }

    @Override
    public void addPet(Pet pet) {
        petDao.addPet(pet);
    }

    @Override
    public boolean isPetNameUnique(String petName) {
        return petDao.isPetNameUnique(petName);
    }
}